var user = getUserInfo();

if(!user){
    window.confirm("没有登录, 不允许进来");
}

var vue = new Vue({
    el:"#app",
    data:{
        owner:{},
        visitors:[
            ],
        totalView:{},
        todayView:{},
        follows:[
        ],
        fans:[
        ],
    },
    methods:{

    },
    filters:{

    },
    mounted:function () {
        var param = getParams();

        ajaxGet("/users/get", {id:param.ownerId}, function (data) {
            vue.owner = data.data;
        })
        ajaxGet("/users/get1", {ownerId:param.ownerId}, function (data) {
            vue.visitors = data.data;
        })
        ajaxGet("/users/get2", {ownerId:param.ownerId}, function (data) {
            vue.totalView = data.data;
        })
        ajaxGet("/users/get3", {ownerId:param.ownerId}, function (data) {

            vue.todayView = data.data;
        })
        ajaxGet("/fans/get", {uid:param.ownerId}, function (data) {

            vue.follows = data.data;
        })
        ajaxGet("/fans/get2", {uid:param.ownerId}, function (data) {

            vue.fans = data.data;
        })
    }
});

